﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GuessBall.Models;

namespace GuessBall.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult Guess(int id)
        {
            Judgment j = new Judgment();
            Result r = j.judge(id);
            ViewBag.result = r;
            return View(r);
        }
    }
}
